package com.ecloud.arithmetic.dto;

import com.ecloud.arithmetic.entities.EnergyPrediction;
import com.ecloud.common.standard.EnableToEntities;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author Squbi
 */
@Data
public class EnergyPredictionDto implements EnableToEntities<EnergyPrediction> {
    private String buildingName;
    private String buildingFloor;
    private String description;
    @Min(1)
    private int dataType;
    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dataTime;
    @NotNull
    private String dataValue;
    @NotNull
    private String dataUnit;
}
